import { ISkill } from "./ISkill";

export abstract class SkillDecorator implements ISkill {
    protected skill: ISkill;

    constructor(skill: ISkill) {
        this.skill = skill;
    }
    /**
     * 实际调用被装饰对象的方法
     * @param option 技能描述
     */
    createSkill(option: any): void {
        this.skill.createSkill(option);
    }

}